﻿using dz.u9.jky.schema.Attrib;
using dz.u9.jky.schema.Common;
using System;

namespace dz.u9.jky.schema.SM
{
    public class DzSalePriceAdjustLineDTO
    {
        /// <summary>
        /// 客户
        /// </summary>
        [DzSimpleObject("UFIDA.U9.Base.DTOs.IDCodeNameDTO,UFIDA.U9.Base.BaseBE")]
        public string Customer { get; set; }

        [DzIgnore]
        public string Org { get; set; }

        /// <summary>
        /// 弹性域
        /// </summary>
        [DzComplexObject("UFIDA.U9.Base.FlexField.DescFlexField.DescFlexSegments,UFIDA.U9.Base.BaseBE")]
        public DescFlexField DescFlexField { get; set; }

        /// <summary>
        /// 生效时间
        /// </summary>
        public DateTime FromDate { get; set; }

        /// <summary>
        /// 失效时间
        /// </summary>
        public DateTime ToDate { get; set; } = DateTime.MaxValue;

        /// <summary>
        /// 单价
        /// </summary>
        public decimal NewPrice { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        [DzSimpleObject("UFIDA.U9.Base.DTOs.IDCodeNameDTO,UFIDA.U9.Base.BaseBE")]
        public string Uom { get; set; }

        /// <summary>
        /// 物料
        /// </summary>
        [DzSimpleObject("UFIDA.U9.CBO.SCM.Item.ItemInfo,UFIDA.U9.CBO.PubBE", "ItemCode")]

        public string ItemInfo { get; set; }
    }
}
